Fix code which finds the default interface if there are static routes.
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Mon, 8 May 2006 09:36:13 +0000 (10:36 +0100)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Mon, 8 May 2006 09:36:13 +0000 (10:36 +0100)
commit3bd47fb5b68bb1bea57ffb26fdf8e3feaded9a44
treecae7a91a0d0bca1db503b5acc65a88147224f4ad
parentfe913cb3923b7c2c390a89bb0f266bfc84a95cb4
Fix code which finds the default interface if there are static routes.
The current code will break if there are multiple scope global routes
since the "ip route list default" command doesn't use "default" as a
filter, and will output multiple devices which breaks the rest of the
script.
Also make the vif/xenbr/eth naming consistent, i.e. if your default
network interface is eth1, you get vif1 and xenbr1.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
tools/examples/network-bridge